package com.atmilan.quartz.service.impl;

import com.atmilan.quartz.mapper.BellettiniProductSkuMapper;
import com.atmilan.quartz.model.entity.bellettini.BellettiniProductSku;
import com.atmilan.quartz.service.IBellettiniProductSkuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BellettiniProductSkuServiceImpl extends ServiceImpl<BellettiniProductSkuMapper, BellettiniProductSku> implements IBellettiniProductSkuService {

    @Autowired
    BellettiniProductSkuMapper bellettiniProductSkuMapper;

    @Override
    public void deleteAll() {
        bellettiniProductSkuMapper.deleteAll();
    }
    
    @Override
    public void copyAll() {
        bellettiniProductSkuMapper.deleteProductSkuBack();
        bellettiniProductSkuMapper.copyProductSkuBack();
    }

}
